#include "BasicVertexTypes.h"
#include "..\renderer\VertexDeclaration.h"
namespace ds {

void TexturedVertex::prepareDeclaration() {
	if ( !gEngine->getResourceManager().contains("TexturedVertexDeclaration") ) {
		ResourceHandle handle = gEngine->getResourceManager().createVertexDeclaration("TexturedVertexDeclaration");
		VertexDeclaration* vd = gEngine->getResourceManager().getVertexDeclaration(handle);
		vd->addElement(VT_FLOAT3,VDU_POSITION);
		vd->addElement(VT_FLOAT2,VDU_TEXCOORD);
		vd->create();
	}
}

}
